package com.dubbo.common.exception;

/**
 * 物联网套件异常
 * @author cehnwei
 *
 */
public class IotException extends Exception{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6836285013434617946L;
	
	/**
	 * 错误的目标
	 */
	private Object target;
	
	/**
	 * 返回 消息,错误目标名称 的结果集
	 * @param message
	 * @param target
	 */
	public IotException(String message,Object target) {
		super(message);
		this.target=target;
	}
	
	public IotException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public IotException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		// TODO Auto-generated constructor stub
	}

	public IotException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}

	public IotException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}

	public IotException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}

	public Object getTarget() {
		return target;
	}

	public void setTarget(Object target) {
		this.target = target;
	}
	
}
